import request from "@/utils/request";

// 查询材料计量单列表
export function listMaterialMeasureSingle(query) {
  return request({
    url: "/ma/materialMeasureSingle/list",
    method: "get",
    params: query
  });
}
// 根据日期获取签收列表明细 根据供应商id和日期范围获取材料签收明细
export function progressDetails(query) {
  return request({
    url: "/ma/materialMeasureSingle/progressDetails",
    method: "get",
    params: query
  });
}
// 查询材料计量单详细
export function getMaterialMeasureSingle(measureSingleId) {
  return request({
    url: "/ma/materialMeasureSingle/" + measureSingleId,
    method: "get"
  });
}

// 新增材料计量单
export function addMaterialMeasureSingle(data) {
  return request({
    url: "/ma/materialMeasureSingle",
    method: "post",
    data: data
  });
}

// 修改材料计量单
export function updateMaterialMeasureSingle(data) {
  return request({
    url: "/ma/materialMeasureSingle",
    method: "put",
    data: data
  });
}

// 删除材料计量单
export function delMaterialMeasureSingle(measureSingleId) {
  return request({
    url: "/ma/materialMeasureSingle/" + measureSingleId,
    method: "delete"
  });
}
